package com.example.fist.dao;

import com.example.fist.entity.WinningEntity;
import com.example.fist.personRepository.WinningRepository;

public class WinningDao {
    private WinningRepository winningRepository;

    public WinningDao(WinningRepository winningRepository) {
        this.winningRepository = winningRepository;
    }

    public  int add(WinningEntity winningEntity){
        if(this.winningRepository.save(winningEntity)!=null){
            return  1;
        }
        return 5 ;
    }
}
